﻿using Abp.Domain.Entities;
using System;
using System.ComponentModel.DataAnnotations;

namespace Batman.Jianbei.Forum.Core.Domains.Dicts
{
    /// <summary>
    /// 胰岛素泵型号
    /// </summary>
    public class PumpModel : Entity<string>
    {
        /// <summary>
        /// 型号名称
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string Name { get; set; }

        /// <summary>
        /// 胰岛素泵品牌ID
        /// </summary>
        [Required]
        [MaxLength(36)]
        public string PumpBrandId { get; set; }

        /// <summary>
        /// 胰岛素泵品牌
        /// </summary>
        public PumpBrand PumpBrand { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [Required]
        public int Sort { get; set; } = 99;

        [Required]
        [MaxLength(36)]
        public string CreateBy { get; set; }

        [Required]
        public DateTime CreateAt { get; set; }
    }
}
